# 导包
import requests

# 发送请求
url = "http://tpshop-test.itheima.net/index.php?m=Home&c=User&a=do_login"

# username: 13088888888, password: 123456, verify_code: 1234
test_data = {
    "username": "13088888888",
    "password": "123456",
    "verify_code": "8888"
}
# 提交form表单时，使用的是data参数来接受测试数据
response = requests.post(url=url, data=test_data)

# 查看响应
print(response.status_code)
print(response.text)
# 查看json返回数据
print(response.json())